package com.bojiu.lawsearch.lawsearch.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

/**
 * @author: afdiao
 * @Date：2020/3/5 23:05
 * @Description:   标题
 */
@Table(name = "mst_label")
@Data
@ApiModel(value = "官方标签",description = "后台官方标签")
public class Label {
    @ApiModelProperty(value = "标签id",required = true)
    @Column(name = "id")
    private Integer id;

    @ApiModelProperty(value = "标签名",required = true)
    @NotNull(message = "标签名不能为空")
    @Column(name = "name")
    private String name;
}
